document.write('<div id="html"></div>');
html.innerHTML='\
<link rel="stylesheet" type="text/css" href="a.css">\
<div id="zz"></div>\
<div id="z">\
<b id=cc>刷播放量。。。</b><b id=cc1>loading。。若失败10s后显示</b><br \>\
<span id="link"></span>\
</div>\
';
function zz(){
    var s = document.getElementById("zz");
    s.style.display = "block";
    var l = document.getElementById("z");
    l.style.display = "block";
    }
    setTimeout("zz()",0);
    function GetQueryString(name)
    {
         var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
         var r = window.location.search.substr(1).match(reg);
         if(r!=null)return  decodeURI(r[2]); return null;
    }
    var a=5;
    function c1()
    {
        var link=document.getElementById("link");
        if(GetQueryString("r")==0){
            link.innerHTML=('本视频属于外链，资源不保存于本站，资源地址：'+GetQueryString("u"));
        }
        var element=document.getElementById("cc");
        element.innerHTML=('<a href="http://{填服务器ip}/html?ver='+Math.random()+'&u='+GetQueryString("u")+'&t='+GetQueryString("t")+'&r='+GetQueryString("r")+'&max='+GetQueryString("max")+'&n='+GetQueryString("n")+'&danmu='+GetQueryString("danmu")+'" target="view_window"><input type="button" value="点此跳转，距离关闭还有 ：" style="height:40px;width:200px;background-color: transparent;border: 0; font-weight:bold;color:green" /></a>');
        var element=document.getElementById("cc1");
        element.innerHTML=a+'s';
        if(a<1)window.history.go(-1);
        a--;
        setTimeout("c1()",1000);
    }
    if(GetQueryString("r")!=0){
        if(!isNaN(GetQueryString("r")))
        {
            document.write('<iframe id="myframe" frameborder="0" scrolling="no" width="100%" height="100%" sandbox="" src="http://www.bilibili.com/video/av'+GetQueryString("r")+'/"></iframe>');
        }
        else
        {
            document.write('<iframe id="myframe" frameborder="0" scrolling="no" width="100%" height="100%" sandbox="" src="'+GetQueryString("r")+'"></iframe>');
        }
        var sT=setTimeout("c1()",10000);
        document.getElementById("myframe").onload = function() {
            clearTimeout(sT);
            setTimeout("c1()",0);
        }
    }else{
        a=8;
        setTimeout("c1()",0);
    }
    